	<div id ="sub-menu">
	<%= link_to 'Creer un compte', {:controller => "accounts", :action => "new"}, :class => "bouton" %> 
 	</div>

	<table class="table">
	  <tr>
	    <th>Nom du compte</th>
	    <th>Date de création</th>
		<th>Details</th>
		<th>Editer</th>
		<th>Supprimer</th>
	  </tr>
	<% for account in @accounts %>
	  <tr>
	     <td> <%= link_to account.login, account %></td>
	     <td> <%= date_alone(account.created_at) %></td>
		 <td><%= link_to image_tag("Users.png"), account %></td>
		 <td><%= link_to image_tag("edit.png"), edit_account_path(account) %></td>
		 <td><%= link_to image_tag("delete.png"), account, :confirm => 'Confirmer Suppression?', :method => :delete %></td>
	  </tr>
	<% end %>
	</table>	
 


